package com.yuanthink.gwt.client;

import com.extjs.gxt.ui.client.widget.Viewport;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.ui.RootPanel;
import com.yuanthink.gwt.client.controllers.MemberController;
import com.yuanthink.gwt.client.eventbus.EventBus;
import com.yuanthink.gwt.client.registry.WindowRegistry;
import com.yuanthink.gwt.client.workplace.ColumnTreePanel;
import com.yuanthink.gwt.client.workplace.WorkspaceController;

public class Yuanthink implements EntryPoint {

	@Override
	public void onModuleLoad() {
		WindowRegistry.register("columnPanel", new ColumnTreePanel());
		Viewport viewport = new Viewport();
		RootPanel.get().add(viewport);
		EventBus eventBus = new EventBus();
		WorkspaceController wpc = new WorkspaceController(eventBus);
		wpc.go(viewport);
		
		MemberController mc = new MemberController(eventBus);
		mc.build();
	}
	
}
